{include file="../../../application/admin/view/public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .layui-field-box .layui-btn{
        margin: 3px 5px;
    }
</style>
<div class="page-container p10">

    <div class="my-toolbar-box">

        <div class="left mb10">
            <fieldset class="layui-elem-field">
                <legend>{$typeInfo.name}- 直播列表</legend>
                <div class="layui-field-box">
                   <form method="post" action="{:url('zhibo/data',['type_id'=>$typeInfo.id])}">
                       <div class="layui-form-item">
                           <label class="layui-form-label">关键词</label>
                           <div class="layui-input-inline">
                               <input type="text" name="keyword" placeholder="请输入关键词" value="{$keyword|default=''}" autocomplete="off" class="layui-input">
                           </div>
                           <div class="layui-btn-inline">
                               <button type="submit" class="layui-btn layui-btn-radius">搜索</button>
                           </div>
                       </div>
                   </form>
                </div>
            </fieldset>
        </div>


    </div>


    <form class="layui-form " method="post" id="pageListForm">
        <table class="layui-table" lay-size="sm">
            <thead>
            <tr>
                <th width="40">编号</th>
                <th >名称</th>
                <th >别名</th>
                <th >球队</th>
<!--                <th width="50">排序</th>-->
                <th width="150">比赛时间</th>
                <th width="150">直播状态</th>
                <th width="200">操作</th>
            </tr>
            </thead>

            {volist name="list" id="vo"}
            <tr>
                <td>{$vo.zhibo_id}</td>
                <td>
                    {$vo.zhibo_name}
                </td><td>
                {$vo.alias_name|default='未绑定'}
            </td>
                <td>
                {$vo.zhibo_qiudui|str_replace='$',' VS ',###}
                </td>
<!--                <td><span class="layui-badge-rim">{$vo.sort}</span></td>-->
                <td>{$vo.datetime}</td>
                <td>{$vo.zhibo_status|getZhiboStatus}</td>
                <td>
                    {if $vo.adtype === 0}
                        {if $vo.from==1}
                    <a data-href="{:url('adset/saishiinfo',['id'=>$vo.ad_id])}" data-title="添加赛事置顶" class="layui-badge-rim j-iframe layui-bg-orange" href="javascrpt:void(0);" >已设为置顶广告 推荐/发现</a>
                        {else /}
                    <a data-href="{:url('adset/saishiinfo',['id'=>$vo.ad_id])}" data-title="添加赛事置顶" class="layui-badge-rim j-iframe" href="javascrpt:void(0);" >已设为置顶广告</a>
                        {/if}
                    {else/}
                    <a data-href="{:url('adset/saishiinfo',['zhibo_id'=>$vo.zhibo_id,'alias_name'=>$vo.alias_name,'type_id'=>$vo.type_id])}" data-title="添加赛事置顶" class="layui-badge-rim j-iframe" href="javascrpt:void(0);">设为置顶广告</a>
                    {/if}
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        <div id="pages" class="center"></div>
    </form>
</div>




{include file="../../../application/admin/view/public/foot" /}

<script type="text/javascript">
    var curUrl="{:url('zhibo/data',$param)}";
    layui.use(['laypage', 'layer','form'], function() {
        var laypage = layui.laypage
            , layer = layui.layer,
            form = layui.form;

        laypage.render({
            elem: 'pages'
            ,count: {$total}
            ,limit: {$limit}
            ,curr: {$page}
            ,layout: ['count', 'prev', 'page', 'next', 'limit', 'skip']
            ,jump: function(obj,first){
                if(!first){
                    location.href = curUrl.replace('%7Bpage%7D',obj.curr).replace('%7Blimit%7D',obj.limit);
                }
            }
        });


    });

</script>
</body>
</html>